//
//  YSShareVew.h
//  newYueLvHui
//
//  Created by Apple on 2020/9/12.
//  Copyright © 2020 Facebook. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YSShareModel.h"

NS_ASSUME_NONNULL_BEGIN


@interface YSShareVew : UIView

- (instancetype)initWithColumn:(NSInteger)column row:(NSInteger)row platforms:(NSArray *)platforms customConfig:(NSArray <YSShareModel *> *)customConfig;

- (instancetype)initWithColumn:(NSInteger)column row:(NSInteger)row platforms:(NSArray *)platforms;
/// 弹出分享菜单
- (void)showSharePlatformView;
/// 弹出生成海报
- (void)showPlacardView;
/// 海报url
@property (nonatomic,copy) NSString *placard_url;
/// 海报图
@property (nonatomic,strong) UIImage *placardImage;
/// 标题
@property (nonatomic,copy) NSAttributedString *attrString;

/// 分享事件回调
@property (nonatomic,copy) void (^sharePlatformBlock)(YSSharePlatformType type);
/// 保存相册事件回调
@property (nonatomic,copy) void (^savePhotoBlock)(UIImage *image);
/// 分享海报
@property (nonatomic,copy) void (^sharePlacardBlock)(YSSharePlatformType type,UIImage *image);

@end

NS_ASSUME_NONNULL_END
